obj-m += bmp280.o 
KDIR =/home/book/lichee/linux
APP-NAME = app
ARM-CC = arm-linux-gnueabihf-

PWD ?= $(shell pwd)
all:
	make -C  $(KDIR) M=$(PWD) modules modules ARCH=arm CROSS_COMPILE=$(ARM-CC)
	$(ARM-CC)gcc -o $(APP-NAME) $(APP-NAME).c

clean:
	rm -rf modules.order *.o workqueue.o  Module.symvers *.mod.c *.ko $(APP-NAME)
